from marshmallow import fields
from src.baseapp.requestVerify.BaseRequestVerify import HeadersSchema, BaseSchema


class LoginHeadersSchema(HeadersSchema):
    token = fields.String(required=False)


class LoginBodySchema(BaseSchema):
    username = fields.String(required=True)
    password = fields.String(required=True)

class UserInfoBodySchema(BaseSchema):
    pass


class RegisterBodySchema(BaseSchema):
    username = fields.String(required=True)
    password = fields.String(required=True)
    email = fields.Email(required=True)


class ResetPasswordBodySchema(BaseSchema):
    old_password = fields.String(required=True)
    new_password = fields.String(required=True)

class UpdateUserBodySchema(BaseSchema):
    email = fields.Email(required=True)

class DeleteUserBodySchema(BaseSchema):
    user_id = fields.Integer(required=True)

